<?php
require_once 'lib/controller.php';
require_once 'views/StandardView.php';
require_once 'db/AuthorisationDB.php';
require_once 'models/AuthorisationModel.php';
require_once 'models/EmailModel.php';
require_once 'db/RegisterEmailDB.php';
require_once 'views/RegisterEmailView.php';
require_once 'models/RegisterEmailModel.php';
$standardView = new StandardView($html, $_GET, $db);
$authorisationDB = new AuthorisationDB($db);
$authorisationModel = new AuthorisationModel($authorisationDB);
$emailModel = new EmailModel();
$registerEmailDB = new RegisterEmailDB($db);
$registerEmailView = new RegisterEmailView($html);
$registerEmailModel = new RegisterEmailModel($registerEmailDB, $registerEmailView, $authorisationModel, $emailModel, $_SERVER, $helper);

$content = $registerEmailModel->render();
echo $standardView->render($content);

?>
